<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>买家收货地址</h2>
	</div>
	<div class="cf">
		<div class="fl">
           <a class="btn" href="javascript:history.go(-1);">后退</a>
        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="">序号</th>
		<th class="">收货人姓名</th>
		<th class="">收货人电话</th>
		<th class="">省市</th>
		<th class="">城市</th>
		<th class="">区域</th>
		<th class="">收货地址</th>
		<th class="">邮政编码</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="row">
		<tr>
			<td>{$key + 1} </td>
			<td>{$row.name}</td>
			<td>{$row.phone}</td>
			<td>{$row.pro_id|getArea=###}</td>
			<td>{$row.city_id|getArea=###}</td>
			<td>{$row.area_id|getArea=###}</td>
			<td>{$row.address}</td>
			<td>{$row.code}</td>
		</tr>
		<else/>
		<td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table>
	</div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

	<script type="text/javascript">
	//搜索功能
	$("#search").click(function(){
		var url = $(this).attr('url');
        var query  = $('.search-form').find('input').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
        query = query.replace(/^&/g,'');
        if( url.indexOf('?')>0 ){
            url += '&' + query;
        }else{
            url += '?' + query;
        }
		window.location.href = url;
	});
	//回车搜索
	$(".search-input").keyup(function(e){
		if(e.keyCode === 13){
			$("#search").click();
			return false;
		}
	});
    //导航高亮
    highlight_subnav('{:U('Order/index')}');
	</script>
</block>
